import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni';
import tailwindcss from 'tailwindcss';
import uniTailwind from '@uni-helper/vite-plugin-uni-tailwind';
import { resolve } from 'path';

export default defineConfig({
  css: {
    postcss: {
      plugins: [
        tailwindcss(),
      ],
    },
  },
  plugins: [
    uni(),
    uniTailwind()
  ],
  resolve: {
    // 配置别名
    alias: {
      '@': resolve(__dirname, './src')
    }
  },
})
